import request from '@/utils/request'

// 查询用户违规记录列表
export function listAppointment(query) {
    return request({
        url: '/biz/appointment/list',
        method: 'get',
        params: query
    })
}

// 查询用户违规记录详细
export function getAppointment(id) {
    return request({
        url: '/biz/appointment/' + id,
        method: 'get'
    })
}

// 新增用户违规记录
export function addAppointment(data) {
    return request({
        url: '/biz/appointment',
        method: 'post',
        data: data
    })
}

// 修改用户违规记录
export function updateAppointment(data) {
    return request({
        url: '/biz/appointment',
        method: 'put',
        data: data
    })
}

// 删除用户违规记录
export function delAppointment(id) {
    return request({
        url: '/biz/appointment/' + id,
        method: 'delete'
    })
}
